import { INCREMENT,DECREMENT,CHANGE_NAME, CHANGEBANNER } from "./constants"

export const Nameaction = (name) => {
    return {type:CHANGE_NAME,name}
}

export const Incrementaction = (num) => {
    return {type:INCREMENT,counter:num}
}

export const Decrementaction = (num) => {
    return {type:DECREMENT,counter:num}
}

export const ChangeBanneraction = (banners) => {
    return { type: CHANGEBANNER, banners: banners };
}

